#include "BoundingVolume.h"
#include <string>
namespace abnormal
{

BoundingVolume::BoundingVolume(){
}

BoundingVolume::~BoundingVolume(){
}

bool BoundingVolume::intersect( BoundingVolume* v2 ){

	std::string type = typeid( *v2 ).name();
	
	if( type == "class AABB" )
		return intersectAABB( v2 );
	else if( type == "class OBB" )
		return intersectOBB( v2 );
	else if( type == "class Frustum" )
		return intersectFrustum( v2 );
	return false;
}

}